<?php

/**
 * ViewVerifierEcartDeuxComptage form base class.
 *
 * @method ViewVerifierEcartDeuxComptage getObject() Returns the current form's model object
 *
 * @package    SdCommerce
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseViewVerifierEcartDeuxComptageForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'               => new sfWidgetFormInputText(),
      'id_comptage'      => new sfWidgetFormInputText(),
      'id_stockarticle'  => new sfWidgetFormInputText(),
      'qte_relle1'       => new sfWidgetFormInputText(),
      'id1'              => new sfWidgetFormInputText(),
      'id_comptage1'     => new sfWidgetFormInputText(),
      'id_stockarticle1' => new sfWidgetFormInputText(),
      'qte_relle2'       => new sfWidgetFormInputText(),
      'reference'        => new sfWidgetFormInputText(),
      'designation'      => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'id'               => new sfValidatorInteger(array('required' => false)),
      'id_comptage'      => new sfValidatorInteger(array('required' => false)),
      'id_stockarticle'  => new sfValidatorInteger(array('required' => false)),
      'qte_relle1'       => new sfValidatorInteger(array('required' => false)),
      'id1'              => new sfValidatorInteger(array('required' => false)),
      'id_comptage1'     => new sfValidatorInteger(array('required' => false)),
      'id_stockarticle1' => new sfValidatorInteger(array('required' => false)),
      'qte_relle2'       => new sfValidatorInteger(array('required' => false)),
      'reference'        => new sfValidatorString(array('max_length' => 50)),
      'designation'      => new sfValidatorString(array('max_length' => 255)),
    ));

    $this->widgetSchema->setNameFormat('view_verifier_ecart_deux_comptage[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'ViewVerifierEcartDeuxComptage';
  }

}
